package com.punai.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.punai.common.core.domain.BaseEntity;
import com.punai.system.constants.SysLogInfoConstants;

import java.util.Date;

/**
 * 系统日志对象 tab_sys_log_info
 *
 * @author tj
 * @date 2023-10-13
 */
@TableName("tab_sys_log_info")
public class SysLogInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private String id;
    /**
     * 推送方
     */
    private String push;
    /**
     * 接收方
     */
    private String receive;
    /**
     * 是否推送成功
     * 0：失败 1：成功
     */
    private String type;
    /**
     * 推送时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date pushTime;
    /**
     * 内容
     */
    private String content;
    /**
     * 推送业务
     */
    private String interfacename;
    /**
     *
     */
    private String message;
    /**
     * 项目编码
     */
    private String proCode;
    /**
     * 项目名称
     */
    private String proName;
    /**
     * 日志类型
     */
    private String logType;

    @TableField(exist = false)
    private String startTime;
    @TableField(exist = false)
    private String endTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPush() {
        return push;
    }

    public void setPush(String push) {
        this.push = push;
    }

    public String getReceive() {
        return receive;
    }

    public void setReceive(String receive) {
        this.receive = receive;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getPushTime() {
        return pushTime;
    }

    public void setPushTime(Date pushTime) {
        this.pushTime = pushTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getInterfacename() {
        return interfacename;
    }

    public void setInterfacename(String interfacename) {
        this.interfacename = interfacename;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getProCode() {
        return proCode;
    }

    public void setProCode(String proCode) {
        this.proCode = proCode;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public String getLogType() {
        return logType;
    }

    public void setLogType(String logType) {
        this.logType = logType;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "SysLogInfo{" +
                "id='" + id + '\'' +
                ", push='" + push + '\'' +
                ", receive='" + receive + '\'' +
                ", type='" + type + '\'' +
                ", pushTime=" + pushTime +
                ", content='" + content + '\'' +
                ", interfacename='" + interfacename + '\'' +
                ", message='" + message + '\'' +
                ", proCode='" + proCode + '\'' +
                ", proName='" + proName + '\'' +
                ", logType='" + logType + '\'' +
                ", startTime='" + startTime + '\'' +
                ", endTime='" + endTime + '\'' +
                '}';
    }
}
